package com.hetang.maijiayun.adaptertools.b2cinterface.youzan.domain;

import java.util.Date;
import java.util.List;

public class Trade {
    private String tid;//   String  E231958349  交易编号
    private Integer num;//  Number  1   商品购买数量。当一个trade对应多个order的时候，值为所有商品购买数量之和
    private String num_iid;//   Number  3424234 商品数字编号。当一个trade对应多个order的时候，值为第一个交易明细中的商品的编号
    private String price;// Price   200.07  商品价格。精确到2位小数；单位：元。当一个trade对应多个order的时候，值为第一个交易明细中的商品的价格
    private String pic_path;//  String  http://imgqn.koudaitong.com/upload_files/2014/01/13/138961372114213030.jpg  商品主图片地址。当一个trade对应多个order的时候，值为第一个交易明细中的商品的图片地址
    private String pic_thumb_path;//    String  http://imgqn.koudaitong.com/upload_files/2014/01/13/138961372114213030.jpg!200x0.jpg    商品主图片缩略图地址
    private String title;// String  春季新款连衣裙 交易标题，以首个商品标题作为此标题的值
    private String type;//  String  FIXED   交易类型。取值范围：FIXED （一口价）GIFT （送礼）BULK_PURCHASE（来自分销商的采购）PRESENT （赠品领取）COD （货到付款）QRCODE（扫码商家二维码直接支付的交易）
    private String weixin_user_id;//    Number  18  微信粉丝ID
    private String buyer_type;//    Number  1   买家类型，取值范围：0 为未知，1 为微信粉丝，2 为微博粉丝
    private String buyer_id;//  Number  18  买家ID，当 buyer_type 为 1 时，buyer_id 的值等于 weixin_user_id 的值
    private String buyer_nick;//    String  MyGirl  买家昵称
    private String buyer_message;// String      买家购买附言
    private String seller_flag;//   Number  5   卖家备注星标，取值范围 1、2、3、4、5；如果为0，表示没有备注星标
    private String trade_memo;//    String  这是一次成功的交易   卖家对该交易的备注
    private String receiver_city;// String  杭州市 收货人的所在城市。PS：如果订单类型是送礼订单，收货地址在sub_trades字段中；如果物流方式是到店自提，收货地址在fetch_detail字段中
    private String receiver_district;// String  西湖区 收货人的所在地区
    private String receiver_name;// String  东方败家    收货人的姓名
    private String receiver_state;//    String  浙江省 收货人的所在省份
    private String receiver_address;//  String  华夏路#12  收货人的详细地址
    private String receiver_zip;//  String  223700  收货人的邮编
    private String receiver_mobile;//   String  13512501826 收货人的手机号码
    private String feedback;//   0   交易维权状态。0 无维权，1 顾客发起维权，2 顾客拒绝商家的处理结果，3 顾客接受商家的处理结果，9 商家正在处理， 101 等待卖家同意退款申请，102 等待卖家同意退款申请（维权失败过），103 卖家不同意退款申请，104 已经申请有赞客满介入， 105 卖家已同意退款，106 已退货，等待卖家确认收货，107 维权已经关闭，110 退款成功。备注：1到10的状态码是微信那边的维权状态码，100以上的状态码是有赞这边的维权状态码
    private String refund_state;//  String  NO_REFUND   退款状态。取值范围：NO_REFUND（无退款）PARTIAL_REFUNDING（部分退款中）PARTIAL_REFUNDED（已部分退款）PARTIAL_REFUND_FAILED（部分退款失败）FULL_REFUNDING（全额退款中）FULL_REFUNDED（已全额退款）FULL_REFUND_FAILED（全额退款失败）
    private String outer_tid;// String  X231958349  外部交易编号。比如，如果支付方式是微信支付，就是财付通的交易单号
    private String status;//    String  TRADE_NO_CREATE_PAY 交易状态。取值范围：TRADE_NO_CREATE_PAY (没有创建支付交易) WAIT_BUYER_PAY (等待买家付款) WAIT_SELLER_SEND_GOODS (等待卖家发货，即：买家已付款) WAIT_BUYER_CONFIRM_GOODS (等待买家确认收货，即：卖家已发货) TRADE_BUYER_SIGNED (买家已签收) TRADE_CLOSED (付款以后用户退款成功，交易自动关闭) TRADE_CLOSED_BY_USER (付款以前，卖家或买家主动关闭交易)
    private String shipping_type;// String  express 创建交易时的物流方式。取值范围：express（快递），fetch（到店自提）
    private String post_fee;//    2.01    运费。单位：元，精确到分
    private String total_fee;// Price   200.02  商品总价（商品价格乘以数量的总金额）。单位：元，精确到分
    private String refunded_fee;//  Price   0   交易完成后退款的金额。单位：元，精确到分
    private String discount_fee;//  Price   0   交易优惠金额（不包含交易明细中的优惠金额）。单位：元，精确到分
    private String payment;//   Price   202.03  实付金额。单位：元，精确到分
    private Date created;// Date    2000-01-01 00:00:00 交易创建时间
    private Date update_time;// Date    2000-01-01 00:00:00 交易更新时间。当交易的：状态改变、备注更改、星标更改 等情况下都会刷新更新时间
    private Date pay_time;//    Date    2000-01-01 00:00:00 买家付款时间
    private String pay_type;//  String  ALIPAY  支付类型。取值范围：WEIXIN (微信支付)ALIPAY (支付宝支付)BANKCARDPAY (银行卡支付)PEERPAY (代付)CODPAY (货到付款)PRESENTTAKE (直接领取赠品)BAIDUPAY (百度钱包支付)
    private Date consign_time;//    Date    2000-01-01 00:00:00 卖家发货时间
    private Date sign_time;//   Date    2000-01-02 12:00:00 买家签收时间
    private String buyer_area;//    String  浙江省杭州市  买家下单的地区
    private List<Order> orders;//    Order[]     交易明细列表
    private List<Trade> sub_trades;
    
    public List<Trade> getSub_trades() {
        return sub_trades;
    }
    public void setSub_trades(List<Trade> sub_trades) {
        this.sub_trades = sub_trades;
    }
    public String getTid() {
        return tid;
    }
    public void setTid(String tid) {
        this.tid = tid;
    }
    public Integer getNum() {
        return num;
    }
    public void setNum(Integer num) {
        this.num = num;
    }
    public String getNum_iid() {
        return num_iid;
    }
    public void setNum_iid(String num_iid) {
        this.num_iid = num_iid;
    }
    public String getPrice() {
        return price;
    }
    public void setPrice(String price) {
        this.price = price;
    }
    public String getPic_path() {
        return pic_path;
    }
    public void setPic_path(String pic_path) {
        this.pic_path = pic_path;
    }
    public String getPic_thumb_path() {
        return pic_thumb_path;
    }
    public void setPic_thumb_path(String pic_thumb_path) {
        this.pic_thumb_path = pic_thumb_path;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getWeixin_user_id() {
        return weixin_user_id;
    }
    public void setWeixin_user_id(String weixin_user_id) {
        this.weixin_user_id = weixin_user_id;
    }
    public String getBuyer_type() {
        return buyer_type;
    }
    public void setBuyer_type(String buyer_type) {
        this.buyer_type = buyer_type;
    }
    public String getBuyer_id() {
        return buyer_id;
    }
    public void setBuyer_id(String buyer_id) {
        this.buyer_id = buyer_id;
    }
    public String getBuyer_nick() {
        return buyer_nick;
    }
    public void setBuyer_nick(String buyer_nick) {
        this.buyer_nick = buyer_nick;
    }
    public String getBuyer_message() {
        return buyer_message;
    }
    public void setBuyer_message(String buyer_message) {
        this.buyer_message = buyer_message;
    }
    public String getSeller_flag() {
        return seller_flag;
    }
    public void setSeller_flag(String seller_flag) {
        this.seller_flag = seller_flag;
    }
    public String getTrade_memo() {
        return trade_memo;
    }
    public void setTrade_memo(String trade_memo) {
        this.trade_memo = trade_memo;
    }
    public String getReceiver_city() {
        return receiver_city;
    }
    public void setReceiver_city(String receiver_city) {
        this.receiver_city = receiver_city;
    }
    public String getReceiver_district() {
        return receiver_district;
    }
    public void setReceiver_district(String receiver_district) {
        this.receiver_district = receiver_district;
    }
    public String getReceiver_name() {
        return receiver_name;
    }
    public void setReceiver_name(String receiver_name) {
        this.receiver_name = receiver_name;
    }
    public String getReceiver_state() {
        return receiver_state;
    }
    public void setReceiver_state(String receiver_state) {
        this.receiver_state = receiver_state;
    }
    public String getReceiver_address() {
        return receiver_address;
    }
    public void setReceiver_address(String receiver_address) {
        this.receiver_address = receiver_address;
    }
    public String getReceiver_zip() {
        return receiver_zip;
    }
    public void setReceiver_zip(String receiver_zip) {
        this.receiver_zip = receiver_zip;
    }
    public String getReceiver_mobile() {
        return receiver_mobile;
    }
    public void setReceiver_mobile(String receiver_mobile) {
        this.receiver_mobile = receiver_mobile;
    }
    public String getFeedback() {
        return feedback;
    }
    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }
    public String getRefund_state() {
        return refund_state;
    }
    public void setRefund_state(String refund_state) {
        this.refund_state = refund_state;
    }
    public String getOuter_tid() {
        return outer_tid;
    }
    public void setOuter_tid(String outer_tid) {
        this.outer_tid = outer_tid;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public String getShipping_type() {
        return shipping_type;
    }
    public void setShipping_type(String shipping_type) {
        this.shipping_type = shipping_type;
    }
    public String getPost_fee() {
        return post_fee;
    }
    public void setPost_fee(String post_fee) {
        this.post_fee = post_fee;
    }
    public String getTotal_fee() {
        return total_fee;
    }
    public void setTotal_fee(String total_fee) {
        this.total_fee = total_fee;
    }
    public String getRefunded_fee() {
        return refunded_fee;
    }
    public void setRefunded_fee(String refunded_fee) {
        this.refunded_fee = refunded_fee;
    }
    public String getDiscount_fee() {
        return discount_fee;
    }
    public void setDiscount_fee(String discount_fee) {
        this.discount_fee = discount_fee;
    }
    public String getPayment() {
        return payment;
    }
    public void setPayment(String payment) {
        this.payment = payment;
    }
    public Date getCreated() {
        return created;
    }
    public void setCreated(Date created) {
        this.created = created;
    }
    public Date getUpdate_time() {
        return update_time;
    }
    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
    public Date getPay_time() {
        return pay_time;
    }
    public void setPay_time(Date pay_time) {
        this.pay_time = pay_time;
    }
    public String getPay_type() {
        return pay_type;
    }
    public void setPay_type(String pay_type) {
        this.pay_type = pay_type;
    }
    public Date getConsign_time() {
        return consign_time;
    }
    public void setConsign_time(Date consign_time) {
        this.consign_time = consign_time;
    }
    public Date getSign_time() {
        return sign_time;
    }
    public void setSign_time(Date sign_time) {
        this.sign_time = sign_time;
    }
    public String getBuyer_area() {
        return buyer_area;
    }
    public void setBuyer_area(String buyer_area) {
        this.buyer_area = buyer_area;
    }
    public List<Order> getOrders() {
        return orders;
    }
    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }
    
}
